package com.unknowpupil.design.factory.impl;

/**
 * @Description: <br/>
 * <p>
 *具体产品
 * </p>
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/4/24 15:14
 * @Classname: HtmlButton
 * @Version: 1.0
 */
/**
 * HTML button implementation.
 */
public class HtmlButton implements Button {

    @Override
    public void render() {
        System.out.println("<button>Test Button</button>");
        onClick();
    }

    @Override
    public void onClick() {
        System.out.println("Click! Button says - 'Hello World!'");
    }
}